package com.ebupt.migu.music.strategy.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class JsonParser {
    public static void parseJson(JSONObject jsonObject, StringBuilder sb, int level) {
        JSONArray data = jsonObject.getJSONArray("data");
        if (data!= null) {
            for (Object obj : data) {
                JSONObject item = (JSONObject) obj;
                for (int i = 0; i < level; i++) {
                    sb.append("  ");
                }
                sb.append(item.getString("label")).append(" -> ").append(item.getString("url")).append("\n");
                if (item.getJSONArray("children")!= null) {
                    parseJson(item, sb, level + 1);
                }
            }
        }
    }

    public static void main(String[] args) {
        String jsonStr = "{\n" +
                "  \"code\": \"0000\",\n" +
                "  \"data\": [\n" +
                "    {\n" +
                "      \"checked\": true,\n" +
                "      \"children\": [\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"createTime\": \"2023-08-02 21:12:31\",\n" +
                "          \"icon\": \"homeIcon\",\n" +
                "          \"id\": \"169\",\n" +
                "          \"label\": \"首页\",\n" +
                "          \"menuIndex\": \"0\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"/main/homePage/homePage\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:13:14\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"173\",\n" +
                "              \"label\": \"人群列表\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"171\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/usergroupList/usergroupList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:14:15\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"175\",\n" +
                "              \"label\": \"黑名单列表\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"171\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/blackListManage/blackListManage\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:14:31\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"177\",\n" +
                "              \"label\": \"白名单列表\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"171\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/whiteListManage/whiteListManage\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:12:58\",\n" +
                "          \"icon\": \"userGroupIcon\",\n" +
                "          \"id\": \"171\",\n" +
                "          \"label\": \"用户群管理\",\n" +
                "          \"menuIndex\": \"1\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"userGroup\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-06-28 01:40:17\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"279\",\n" +
                "              \"label\": \"标签圈选\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"277\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/customSelect/customSelect\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-06-28 01:40:45\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"281\",\n" +
                "              \"label\": \"标签列表\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"277\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/labelList/labelList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-06-28 01:41:05\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"283\",\n" +
                "              \"label\": \"人群管理\",\n" +
                "              \"menuIndex\": \"3\",\n" +
                "              \"parentId\": \"277\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/crowdManage/crowdManage\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2024-06-28 01:39:45\",\n" +
                "          \"icon\": \"\",\n" +
                "          \"id\": \"277\",\n" +
                "          \"label\": \"场景标签\",\n" +
                "          \"menuIndex\": \"1\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"/senceTag\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"createTime\": \"2023-08-02 21:14:58\",\n" +
                "          \"icon\": \"insightPageIcon\",\n" +
                "          \"id\": \"179\",\n" +
                "          \"label\": \"客群洞察\",\n" +
                "          \"menuIndex\": \"2\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"/main/insightPage/insightPage\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:15:51\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"183\",\n" +
                "              \"label\": \"离线策略管理\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"181\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/strategicList/strategicList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:16:07\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"185\",\n" +
                "              \"label\": \"弹窗运营策略管理\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"181\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/pop/list\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:16:24\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"187\",\n" +
                "              \"label\": \"自动触发策略管理\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"181\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/triggerList/triggerList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:16:43\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"189\",\n" +
                "              \"label\": \"自动运营策略管理\",\n" +
                "              \"menuIndex\": \"3\",\n" +
                "              \"parentId\": \"181\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/automaticOpera/strategyList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-04-16 21:21:11\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"263\",\n" +
                "              \"label\": \"宣发策略管理\",\n" +
                "              \"menuIndex\": \"4\",\n" +
                "              \"parentId\": \"181\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/promotion/strategyList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-05-11 21:09:13\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"269\",\n" +
                "              \"label\": \"融媒运营管理\",\n" +
                "              \"menuIndex\": \"5\",\n" +
                "              \"parentId\": \"181\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/integraMedia/strategyList\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:15:32\",\n" +
                "          \"icon\": \"strategicIcon\",\n" +
                "          \"id\": \"181\",\n" +
                "          \"label\": \"运营策略配置\",\n" +
                "          \"menuIndex\": \"3\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"strategicManage\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"createTime\": \"2023-09-07 20:17:48\",\n" +
                "          \"icon\": \"pubBroadIcon\",\n" +
                "          \"id\": \"249\",\n" +
                "          \"label\": \"公播平台运营\",\n" +
                "          \"menuIndex\": \"5\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"/main/pubBroadPlate/strategyList\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:17:22\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"193\",\n" +
                "              \"label\": \"离线策略审批\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"191\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/checkList/checkList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:17:35\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"195\",\n" +
                "              \"label\": \"自动触发审批\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"191\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/triCheckList/triCheckList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:17:51\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"197\",\n" +
                "              \"label\": \"弹窗运营策略审批\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"191\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/pop/check\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:18:09\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"199\",\n" +
                "              \"label\": \"自动运营策略审批\",\n" +
                "              \"menuIndex\": \"3\",\n" +
                "              \"parentId\": \"191\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/automaticOpera/strategyCheck\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-04-16 21:21:58\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"265\",\n" +
                "              \"label\": \"宣发策略审批\",\n" +
                "              \"menuIndex\": \"4\",\n" +
                "              \"parentId\": \"191\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/promotion/strategyProCheck\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-05-11 21:10:46\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"271\",\n" +
                "              \"label\": \"融媒运营审批\",\n" +
                "              \"menuIndex\": \"5\",\n" +
                "              \"parentId\": \"191\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/integraMedia/strategyIntegCheck\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:17:02\",\n" +
                "          \"icon\": \"checkIcon\",\n" +
                "          \"id\": \"191\",\n" +
                "          \"label\": \"审批管理\",\n" +
                "          \"menuIndex\": \"6\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"check\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"children\": [\n" +
                "                {\n" +
                "                  \"checked\": true,\n" +
                "                  \"createTime\": \"2023-12-26 20:20:48\",\n" +
                "                  \"icon\": \"\",\n" +
                "                  \"id\": \"251\",\n" +
                "                  \"label\": \"离线策略\",\n" +
                "                  \"menuIndex\": \"1\",\n" +
                "                  \"parentId\": \"203\",\n" +
                "                  \"status\": \"1\",\n" +
                "                  \"url\": \"/main/smsOperation/smsOperation\"\n" +
                "                },\n" +
                "                {\n" +
                "                  \"checked\": true,\n" +
                "                  \"createTime\": \"2023-12-26 20:21:10\",\n" +
                "                  \"icon\": \"\",\n" +
                "                  \"id\": \"253\",\n" +
                "                  \"label\": \"自动运营策略\",\n" +
                "                  \"menuIndex\": \"2\",\n" +
                "                  \"parentId\": \"203\",\n" +
                "                  \"status\": \"1\",\n" +
                "                  \"url\": \"/main/smsOperationAuto/smsOperationAuto\"\n" +
                "                }\n" +
                "              ],\n" +
                "              \"createTime\": \"2023-08-02 21:18:59\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"203\",\n" +
                "              \"label\": \"短信运营\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/smsOperation\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"children\": [\n" +
                "                {\n" +
                "                  \"checked\": true,\n" +
                "                  \"createTime\": \"2023-12-26 20:21:46\",\n" +
                "                  \"icon\": \"\",\n" +
                "                  \"id\": \"255\",\n" +
                "                  \"label\": \"离线策略\",\n" +
                "                  \"menuIndex\": \"1\",\n" +
                "                  \"parentId\": \"205\",\n" +
                "                  \"status\": \"1\",\n" +
                "                  \"url\": \"/main/smsPush/smsPush\"\n" +
                "                },\n" +
                "                {\n" +
                "                  \"checked\": true,\n" +
                "                  \"createTime\": \"2023-12-26 20:22:05\",\n" +
                "                  \"icon\": \"\",\n" +
                "                  \"id\": \"257\",\n" +
                "                  \"label\": \"自动运营策略\",\n" +
                "                  \"menuIndex\": \"2\",\n" +
                "                  \"parentId\": \"205\",\n" +
                "                  \"status\": \"1\",\n" +
                "                  \"url\": \"/main/smsPushAuto/smsPushAuto\"\n" +
                "                }\n" +
                "              ],\n" +
                "              \"createTime\": \"2023-08-02 21:19:20\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"205\",\n" +
                "              \"label\": \"消息push\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/smsPush\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:19:33\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"207\",\n" +
                "              \"label\": \"banner位\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/bannerOperation/bannerOperation\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:19:54\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"209\",\n" +
                "              \"label\": \"音乐之声\",\n" +
                "              \"menuIndex\": \"3\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/soundOfMusic/soundOfMusic\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"children\": [\n" +
                "                {\n" +
                "                  \"checked\": true,\n" +
                "                  \"createTime\": \"2023-12-26 20:22:37\",\n" +
                "                  \"icon\": \"\",\n" +
                "                  \"id\": \"259\",\n" +
                "                  \"label\": \"离线策略\",\n" +
                "                  \"menuIndex\": \"1\",\n" +
                "                  \"parentId\": \"211\",\n" +
                "                  \"status\": \"1\",\n" +
                "                  \"url\": \"/main/noticeOperation/noticeOperation\"\n" +
                "                },\n" +
                "                {\n" +
                "                  \"checked\": true,\n" +
                "                  \"createTime\": \"2023-12-26 20:22:53\",\n" +
                "                  \"icon\": \"\",\n" +
                "                  \"id\": \"261\",\n" +
                "                  \"label\": \"自动运营策略\",\n" +
                "                  \"menuIndex\": \"2\",\n" +
                "                  \"parentId\": \"211\",\n" +
                "                  \"status\": \"1\",\n" +
                "                  \"url\": \"/main/noticeOperationAuto/noticeOperationAuto\"\n" +
                "                }\n" +
                "              ],\n" +
                "              \"createTime\": \"2023-08-02 21:20:06\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"211\",\n" +
                "              \"label\": \"消息通知\",\n" +
                "              \"menuIndex\": \"4\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/noticeOperation\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:20:23\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"213\",\n" +
                "              \"label\": \"重度用户\",\n" +
                "              \"menuIndex\": \"5\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/valueUserOperation/valueUserOperation\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:20:39\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"215\",\n" +
                "              \"label\": \"弹窗\",\n" +
                "              \"menuIndex\": \"6\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/pop/popOperation\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-04-16 21:22:30\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"267\",\n" +
                "              \"label\": \"宣发策略\",\n" +
                "              \"menuIndex\": \"7\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/promotion/effectStatis\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2024-05-11 21:11:26\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"273\",\n" +
                "              \"label\": \"融媒运营\",\n" +
                "              \"menuIndex\": \"8\",\n" +
                "              \"parentId\": \"201\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/integraMedia/effectStatis\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:18:43\",\n" +
                "          \"icon\": \"effectIcon\",\n" +
                "          \"id\": \"201\",\n" +
                "          \"label\": \"效果统计\",\n" +
                "          \"menuIndex\": \"7\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"effectStatistics\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:21:26\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"219\",\n" +
                "              \"label\": \"效果追踪\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"217\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/listOperation/effectTracking\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:20:57\",\n" +
                "          \"icon\": \"listOperatIcon\",\n" +
                "          \"id\": \"217\",\n" +
                "          \"label\": \"榜单运营\",\n" +
                "          \"menuIndex\": \"8\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"list\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:22:13\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"223\",\n" +
                "              \"label\": \"通知角色模板列表\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/noticeManage/noticeManage\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:22:26\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"225\",\n" +
                "              \"label\": \"红包信息列表\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/vipPacketManage/vipPacketManage\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:22:37\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"227\",\n" +
                "              \"label\": \"红包策略组列表\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/packetGroupManage/packetGroupManage\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:23:15\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"229\",\n" +
                "              \"label\": \"弹窗配置\",\n" +
                "              \"menuIndex\": \"3\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/pop/popSetFrequency\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:23:31\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"231\",\n" +
                "              \"label\": \"短信模板列表\",\n" +
                "              \"menuIndex\": \"4\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/newsModelManage/newsModelManage\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:23:46\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"233\",\n" +
                "              \"label\": \"歌曲出库\",\n" +
                "              \"menuIndex\": \"5\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/songDeliy/songDeliy\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:25:05\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"235\",\n" +
                "              \"label\": \"歌手出库\",\n" +
                "              \"menuIndex\": \"6\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/singerDeliy/singerDeliy\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:25:22\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"237\",\n" +
                "              \"label\": \"内容基础配置\",\n" +
                "              \"menuIndex\": \"7\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/basicConfig/basicConfig\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:25:34\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"239\",\n" +
                "              \"label\": \"歌手列表\",\n" +
                "              \"menuIndex\": \"8\",\n" +
                "              \"parentId\": \"221\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/blacklistOfSingers/blacklistOfSingers\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:21:47\",\n" +
                "          \"icon\": \"supportMagIcon\",\n" +
                "          \"id\": \"221\",\n" +
                "          \"label\": \"支撑管理\",\n" +
                "          \"menuIndex\": \"9\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"supportManage\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"children\": [\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:26:08\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"243\",\n" +
                "              \"label\": \"用户列表\",\n" +
                "              \"menuIndex\": \"0\",\n" +
                "              \"parentId\": \"241\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/userList/userList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:26:27\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"245\",\n" +
                "              \"label\": \"角色列表\",\n" +
                "              \"menuIndex\": \"1\",\n" +
                "              \"parentId\": \"241\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/roleList/roleList\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"checked\": true,\n" +
                "              \"createTime\": \"2023-08-02 21:26:42\",\n" +
                "              \"icon\": \"\",\n" +
                "              \"id\": \"247\",\n" +
                "              \"label\": \"菜单列表\",\n" +
                "              \"menuIndex\": \"2\",\n" +
                "              \"parentId\": \"241\",\n" +
                "              \"status\": \"1\",\n" +
                "              \"url\": \"/main/menuManage/menuManage\"\n" +
                "            }\n" +
                "          ],\n" +
                "          \"createTime\": \"2023-08-02 21:25:47\",\n" +
                "          \"icon\": \"systemMagIcon\",\n" +
                "          \"id\": \"241\",\n" +
                "          \"label\": \"系统管理\",\n" +
                "          \"menuIndex\": \"10\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"systemManage\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"checked\": true,\n" +
                "          \"createTime\": \"2024-05-11 21:12:27\",\n" +
                "          \"icon\": \"\",\n" +
                "          \"id\": \"275\",\n" +
                "          \"label\": \"幸福1+1文件上传\",\n" +
                "          \"menuIndex\": \"12\",\n" +
                "          \"parentId\": \"10\",\n" +
                "          \"status\": \"1\",\n" +
                "          \"url\": \"/main/happinessUpload/happinessUpload\"\n" +
                "        }\n" +
                "      ],\n" +
                "      \"createTime\": \"2019-09-20 13:54:39\",\n" +
                "      \"icon\": \"el-icon-menu\",\n" +
                "      \"id\": \"10\",\n" +
                "      \"label\": \"首页\",\n" +
                "      \"menuIndex\": \"0\",\n" +
                "      \"parentId\": \"0\",\n" +
                "      \"status\": \"1\",\n" +
                "      \"url\": \"opration\"\n" +
                "    }\n" +
                "  ]\n" +
                "}";
//        jsonStr = jsonStr.replace("\n", "");
        JSONObject jsonObject = JSONObject.parseObject(jsonStr);
        StringBuilder sb = new StringBuilder();
        parseJson(jsonObject, sb, 0);
        System.out.println(sb.toString());
    }
}